<!-- 1903010328 查询通行证 -->
<?php
$loginPath = "../login.html";
include "../inc/log/session.php";
?>
<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>教师成绩录入</title>
	<link rel="stylesheet" type="text/css" href="/28/inc/CSS/tScoreln.css">
	<link rel="stylesheet" type="text/css" href="/28/inc/CSS/reset.css">
	<script tpye="text/javascript" src="/28/inc/js/mmxscore.js"></script>
</head>
<body>
	<div id="tScoreln">
		<!--顶部-->
			<div id="top">
			<img src="/28/inc/pic/00.png">
			<!--导航栏区域和下拉列表-->
			<div id="top-rig">
			<ul>
			    <li><a href="">首页</a></li>
			    <li id="ddown"><a href="" id="dropbtn">学校概况</a>
				    <div id="ddown-content">
				    <a href="">学校简介</a>
				    <a href="">历任教师</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">国际合作</a>
				    <div id="ddown-content">
				    <a href="">交流概况</a>
				    <a href="">国际学生</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">院系部门</a>
				    <div id="ddown-content">
				    <a href="">党群机构</a>
				    <a href="">管理与服务机构</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">科学研究</a>
				    <div id="ddown-content">
				    <a href="">科研概况</a>
				    <a href="">重点学科</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">教师队伍</a>
				    <div id="ddown-content">
				    <a href="">总体介绍</a>
				    <a href="">杰出人才</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">人才培养</a>
				    <div id="ddown-content">
				    <a href="">继续教育</a>
				    <a href="">奖贷学金</a>
				    </div>
				</li>
				<li id="ddown"><a href="" id="dropbtn">人才招聘</a>
				    <div id="ddown-content">
				    <a href="">优秀博士后</a>
				    <a href="">应聘方式</a>
				    </div>
				</li>
                <li id="ddown"><a href="" id="dropbtn">招生就业</a>
				    <div id="ddown-content">
				    <a href="">本科生招生</a>
				    <a href="">就业服务</a>
				    </div>
				</li>
				<img src="/28/inc/pic/find1.png">
		    </ul>
			</div>
			</div>
	    <!--顶部结束-->
	    <!---->
	    	<div id="main">
	        	<img src="/28/inc/pic/position.png">
	    		当前位置: 教师-成绩录入
	    	</div>
	    <!--结束-->
	    <div id="yh">
	    <img src="/28/inc/pic/user.png" style="width:25px;height:25px;margin:3px 10px;">
		<!-- 1903010328 动态信息 -->
		<h4 style="margin:3px 10px;font-size:20px;">您好！
		<?php
			echo <<<end
			{$_SESSION["name"]} |
			身份：{$_SESSION["sf"]} |
			学号/职工号：{$_SESSION["id"]} |  
			学院：{$_SESSION["xy"]} 
end;
		?>
		</h4>
	    </div>
	    <div id="SZ" >
	    <ul>
	    	<li id="d1"><a href="../index.php">首页</a></li>
	    	<li id="d1"><a href="/28/school/tScoreln.php">成绩录入</a></li>
	    	<li id="d1"><a href="scoreSearch.php">成绩查询</a></li>
	    	<li id="d1"><a herf="/28/school/tTask.php">教学任务查询</a></li>
	    	<li id="d1"><a herf="/28/school/user.php">用户设置</a></li>
	    	<li id="d1"><a herf="/28/school/me.php">上传头像</a></li>
	    	<li id="d1"><a href="../quit.php">注销</a></li>
	    	</ul>
	    </div>
		<!--结束-->
		<!-- 查询班级和教学id号 -->
<?php
    include "../inc/data/conn.php";
    $teId = $_SESSION["id"];
    $sql1 = "select coname,classname,taskid 
    		from mamx_course,mamx_task
      		where mamx_course.coid=mamx_task.coid and teid = ?";
    $stmt=$conn->prepare($sql1);
    $stmt->bind_param("i",$teId);
    $stmt->bind_result($coName,$stuClass,$taskId);
    $stmt->execute();
    $stmt->store_result();

?>
	    <!--表格区域-->
	<div id="">
 		<form action="" name="secore">
			<table id="table2" width="1100px" >
				<tr>
					<td><b>查询条件</b></td>
				</tr>
  				<tr>
    			<td>请选择需要录入成绩的课程: 
    			<select name="task" style="width:200px">
    <?php
        if($stmt->num_rows > 0){
            while($stmt->fetch()){
              echo <<<END
              <option value="$taskId $stuClass">$stuClass  $coName</option>
END;
            }
          }
          else{
            echo <<<END
            <option value=''>暂无记录</option>
END;
          }
        ?>
      </select>
      <input type="button" value="查询" onclick="showScore(document.secore.task.value)">
    </td>
  </tr>  
</table>
</form>
	    </div>
	    <!-- 查询信息显示区域 -->
	    <div id="seArea">

</div>
	</div>
	<!--底部区域-->
	<div id="footer">
		<img src="/28/inc/pic/footer.png">
		<p>哈尔滨市南岗区西大直街92号 查号台：+86-451-86412114 P.C.:150001 Copyright © 2020  哈尔滨工业大学网络与信息中心 黑ICP备05006863号</p>
	</div>
	<!--底部区域结束-->
</body>
</html>